<template>
    <div class="aa">
        <!-- <router-view/> -->
         <el-container>
      <el-header>
        <h1>电商管理系统</h1>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <ul>
            <li>
              <router-link to="home">首页</router-link>
            </li>
            <li>
              <router-link to="cate">父类</router-link>
            </li>
            <li>
              <router-link to="cart">购物车</router-link>
            </li>
            <li>
              <router-link to="my">我的</router-link>
            </li>
          </ul>
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
    </div>
</template>

<script>
export default {
    name: 'MyappFarent',

    data() {
        return {
            
        };
    },

    mounted() {
        
    },

    methods: {
        
    },
};
</script>

<style lang="scss" scoped>
.el-header{
  background-color: aqua;
}
a{
  text-decoration: none;
}
.el-aside{
  height: 100%;
  background-color: burlywood;
}
.el-main{
  background-color: darkcyan;
}
.el-container{
  height: 100%;
}
.aa{
  width: 100%;
  height: 100%;
}
</style>